<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<head>
<html:base />
<title><bean:message key="Application.Name"/></title>
<link href="css/formas.css" rel="stylesheet" type="text/css">
<logic:present name="req_msg">
	<script>
		alert("<bean:write name='req_msg'/>");
	</script>
</logic:present>
</head>
<body>
 	<table cellpadding="0" cellspacing="0" class="formas">
		<tr>
	    	<td>
			  	<table cellpadding="0" cellspacing="0" class="barraNavegacion">
					<tr>
			        	<td><html:link action="/academy_welcome?action=selectAcademy" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="AcademyWelcome.Init"/></html:link>
			        		<html:link action="/academy_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.AcademyHeader"/></html:link>
			        		<html:link action="/subject_list" styleClass="barraNavegacion" name="academia" property="map_id"><img src="images/icn_liga.gif" border="0"><bean:message key="StudyPlan.subjects"/></html:link>
			        		<html:link action="/contents_list" styleClass="barraNavegacion" name="materia" property="map_id"><img src="images/icn_liga.gif" border="0"><bean:message key="StudyPlan.subjects.contents"/></html:link>
		              	</td>
	    			</tr>
			    </table>
			    <table cellpadding="0" cellspacing="0" class="titulo">
	                <tr>
	                	<td class="iconos_imgs"><a href="mailto:<bean:message key="Application.mailto"/>"><img src="images/icn_correo.gif" width="18" height="18" border="0"></a></td>
	                	<td class="txt_titulo"><bean:message key="Units.content"/></td>
		            </tr>
	            </table>
	            <table cellpadding="0" cellspacing="2" class="info_formas">
					<tr> 
						<td>&nbsp;</td>
					</tr>
					<tr> 
						<td colspan="5" class="formas-encabezado"><bean:message key="StudyPlan.subject.subjectData"/></td>
					</tr>
					<tr> 
						<td colspan="5">
							<table cellpadding="0" cellspacing="2" class="info_titulo">
								<tr> 
									<td class=""><strong><bean:message key="StudyPlan.subject"/></strong></td>
									<td class=""><bean:write name="materia" property="codigo"/> - <bean:write name="materia" property="nombre"/></td>
								</tr>
								<tr> 
									<td class=""><strong><bean:message key="AcademyWelcome.Academy"/></strong></td>
									<td class=""><bean:write name="academia" property="codigo"/> - <bean:write name="academia" property="nombre"/></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr> 
						<td colspan="5" align="right">
							<logic:equal name="ses_usuario" property="per_planes" value="2">
								<input type="button" name="btn_insertar" value="<bean:message key="Application.Insert"/> <bean:message key="Unit"/>" onclick="location.href = '<html:rewrite action="/unit_add" name="materia" property="map_id"/>'"/>	
							</logic:equal>
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
					<tr> 
		                  <td class="formas-encabezado"><bean:message key="Unit"/></td>
		                  <td class="formas-encabezado"><bean:message key="Unit.description"/></td>
		                  <td colspan="2" class="formas-encabezado"><bean:message key="DraftList.Actions"/></td>
		                  <td class="formas-encabezado"><bean:message key="Units.themes"/> </td>
               		 </tr>
               		 <logic:iterate id="unidades" name="lst_unidad" indexId="int_i" scope="request">
							<tr class="info_formas"> 
								<td class="formas-backcolor<%= (int_i.intValue()%2==0?"1":"2") %>"><bean:write name="unidades" property="int_unitNumber"/></td>
								<td class="formas-backcolor<%= (int_i.intValue()%2==0?"1":"2") %>"><bean:write name="unidades" property="str_descripcion"/></td>																		
								<td class="formas-backcolor<%= (int_i.intValue()%2==0?"1":"2") %>"><html:link action="/unit_edit.do" name="unidades" property="map_id"><html:img page="/images/icn_editar.gif" border="0" width="24" height="24"/></html:link></td>
								<td class="formas-backcolor<%= (int_i.intValue()%2==0?"1":"2") %>"><html:link action="/unit_delete.do" name="unidades" property="map_id">
									<logic:equal name="ses_usuario" property="per_planes" value="2">
										<html:img page="/images/icn_eliminar.gif" border="0" width="24" height="24"/>
									</logic:equal>
								</html:link></td>
								<td class="formas-backcolor<%= (int_i.intValue()%2==0?"1":"2") %>"><html:link action="/topic_lista" name="unidades" property="map_id"><img src="images/icn_liga.gif" width="10" height="7" border="0"></html:link></td>
							</tr>
					</logic:iterate>
               		 </table>
					</tr>

</body>
</html:html>
